﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/PopupDiv.master" AutoEventWireup="true" CodeBehind="SaveDirRight.aspx.cs" Inherits="Jzy.Web.DocManager.Dir.SaveDirRight" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
 <script type="text/javascript">
        function selectRight(strTxtRight,src)
        {
            var ulRight = document.getElementById("ulRight");
            var lis = ulRight.getElementsByTagName("li");
            
            for(var i=0;i<lis.length;i++)
            {
                lis[i].style.backgroundColor = "";
            }
            src.style.backgroundColor = "#cccccc";

            var txts = document.getElementById("divRight").getElementsByTagName("textarea");
            for(var i=0;i<txts.length;i++)
            {
                              
                    txts[i].style.display = "none";               
            }
            document.getElementById(strTxtRight).style.display = "";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

   

    <table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
        <tr>
            <td style="width: 10px;">
            </td>
            <td style="height: 30px;">
                <asp:Label ID="Label1" runat="server" Text="目录权限："></asp:Label>
            </td>
            <td style="width: 10px;">
            </td>
            <td>
                <asp:HyperLink ID="HyperLink1" runat="server">选择部门用户：</asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <div class="border" style="width: 100px; height: 200px; padding: 2px;">
                    <ul style="list-style-type: none;" id="ulRight">
                        <asp:Repeater ID="rptRight" runat="server" OnItemDataBound="rptRight_ItemDataBound">
                            <ItemTemplate>
                                <li style="cursor: default; padding-top: 5px; padding-bottom: 5px; width: 100%;"
                                    runat="server" id="item">
                                    <%#Eval("name") %>
                                    <asp:HiddenField ID="hidRight" runat="server" Value='<%#Eval("txtRight") %>' />
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </td>
            <td>
            </td>
            <td id="divRight">
                <asp:TextBox ID="txtBrowse" runat="server" Height="200px" TextMode="MultiLine" Width="150px"
                    Style="padding: 2px;"></asp:TextBox><asp:HiddenField ID="hidBrowse" runat="server" />
                <asp:TextBox ID="txtAdd" runat="server" Height="200px" TextMode="MultiLine" Width="150px"
                    Style="padding: 2px;"></asp:TextBox><asp:HiddenField ID="hidAdd" runat="server" />
                <asp:TextBox ID="txtEdit" runat="server" Height="200px" TextMode="MultiLine" Width="150px"
                    Style="padding: 2px;"></asp:TextBox><asp:HiddenField ID="hidEdit" runat="server" />
                <asp:TextBox ID="txtDelete" runat="server" Height="200px" TextMode="MultiLine" Width="150px"
                    Style="padding: 2px;"></asp:TextBox><asp:HiddenField ID="hidDelete" runat="server" />
                <asp:TextBox ID="txtManage" runat="server" Height="200px" TextMode="MultiLine" Width="150px"
                    Style="padding: 2px;"></asp:TextBox><asp:HiddenField ID="hidManage" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="height:10px;"></td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
</asp:Content>
